home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOpus Plus
/
DOpus Plus.iso
/
Tutorial
/
C Guide
/
Time_module
/
smakefile
< prev
Wrap
Makefile
|
1998-09-18
|
2KB
|
96 lines
# Makefile for a sample Opus 5 module
# This is based on the structure of the real Opus makefile, but may be
# adapted as you see fit
# Files for this module
EXAMPLEOBJS = modinit.o ModuleEntry.o IconClock.o ClockConfig.o buildinstrings.o
# Library-Version/-Revision
MODULENAME = time.module
EXAMPLEVER = 56
EXAMPLEREV = 0
# Compiler options
CCOPTS = noversion optimize def DATATYPES
# profile
# Linker options
SLINKOPTS = noicons smallcode smalldata
# nodebug
#########################################################################
all: includes/buildin.strings $(MODULENAME)
#########################################################################
$(MODULENAME): $(EXAMPLEOBJS) smakefile scoptions
slink with <<
libprefix _L_
libfd modules.fd
from lib:libent.o lib:libinit.o $(EXAMPLEOBJS)
to $@
lib lib:sc.lib lib:amiga.lib lib:dopuslib.lib lib:sdi_std.lib
libversion $(EXAMPLEVER)
librevision $(EXAMPLEREV)
$(SLINKOPTS)
<
#########################################################################
# This will create the string file
buildinstrings.o : includes/buildin.strings
setdate buildinstrings.c
sc buildinstrings.c
#
ModuleEntry.o: ModuleEntry.c includes/Project.h
#
Prefs.o: Prefs.c includes/Project.h
#
IconClock.o: IconClock.c includes/Project.h includes/Clock.h includes/buildin.strings
#
ClockConfig.o: ClockConfig.c includes/Clock.h
#
modinit.o: modinit.c
#########################################################################
.c.o:
sc $(CCOPTS) $*.c
.asm.o:
sc:c/asm -iASMINC: $*.asm
.cd.strings:
catcomp descriptor=$*.cd cfile=$*.strings
#########################################################################
# wird nur bei Tooltype CLEAN ausgeführt...
clean:
delete ~(\#?_strings).o quiet
copy *.module DOpus5:modules
setdate \#?.cd
#########################################################################
copy:
copy *.module DOpus5:modules
wait 5
avail flush